import React from 'react';
import Formuser, { isProps } from './form_user';
import { Form } from 'antd';
import { connect } from 'dva';

export default connect(({ usermanager }: any) => ({ auth: usermanager.view }))(
  Form.create({
    mapPropsToFields(props: isProps) {
      return {
        accont: Form.createFormField({
          value: props.auth.accont,
        }),
      };
    },
  })(Formuser),
);
